﻿
using Chain.BLL;
using Chain.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

public partial class RptCustomerRecommend : Page
{


    public void GetAwards()
    {
        int ID = Convert.ToInt16(base.Request["ID"].ToString());
        DataTable dt = new Chain.BLL.WxRedPacketsList().GetList("ID="+ID).Tables[0];

        this.rptAwardsDetails.DataSource = dt;
        this.rptAwardsDetails.DataBind();
    }




    protected void Page_Load(object sender, EventArgs e)
    {
        if (!base.IsPostBack)
        {
            this.GetAwards();
        }
    }


    protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
            Label lb_no = (Label)e.Item.FindControl("lblDetails");
            lb_no.Text = (1 + e.Item.ItemIndex).ToString();
        }
    }
}


